import { _decorator, Component, Node, instantiate, UITransform, AudioSource } from 'cc';
import { ResManager } from '../../../core/modules/res/ResManager';
import { AudioManager } from '../../../core/modules/audio/AudioManager';
const { ccclass, property } = _decorator;

export class LoginEntry {
    init() {
        AudioManager.getInstance().play("LoginBN", "Res/Audio/bgm");
    }

    private _loginCallback: Function = null;
    public showLogin(loginCallback: Function) {
        this._loginCallback = loginCallback;
        this.doLogin();
    }

    private doLogin() {
        setTimeout(()=>{
            this._loginCallback();
        }, 1000);
    }
}


